﻿using SqlSugar;

namespace TiaoTiaoCode.BasicDbCore
{
    /// <summary>
    /// 基础抽象类
    /// </summary>
    public abstract class BaseSimplyEntity
    {
        /// <summary>
        /// 主键Id
        /// </summary>
        [SugarColumn(ColumnName = "id", Length = 64, ColumnDescription = "主键Id", IsPrimaryKey = true)]
        public string Id { get; set; } = SnowFlakeSingle.instance.NextId().ToString();
    }
}
